import { http } from '@/utils/request'
import type { MemberInfo } from '@/types'

// 获得基本信息
export const getMemberInfo = () => {
    return http({
        method: 'GET',
        url: `/app-api/member/user/get`,
    })
}
// 修改基本信息
export const updateMemberInfo = (data:MemberInfo) => {
    return http({
        method: 'PUT',
        url: `/app-api/member/user/update`,
        data
    })
}
// 检查是否加入公众号
export const checkMemberMp = () => {
    return http({
        method: 'GET',
        url: `/app-api/member/user/check-member-mp`
    })
}
// 师傅申请列表
export const getUserRoleList = () => {
    return http({
        method: 'GET',
        url: `/app-api/member/user/getUserRoleList`
    })
}